package test.study.nosql.redis.client.redisson;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.client.codec.StringCodec;
import org.redisson.config.Config;

public class RedissonClients {

    private static String HOST = "redis://101.42.254.155:7379";

    public static RedissonClient getRedisson() {
        Config config = new Config();
        config.setCodec(new StringCodec());
        config.useSingleServer()
                .setAddress(HOST);
        org.redisson.api.RedissonClient redisson = Redisson.create(config);
        return redisson;
    }
}